package com.cn.wanxi.thread.priority;

/**
 * 严重优先级规则性,将优先级对调一下，对打印出来的进行比较
 */
public class TestRule {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            MyThreadThree myThreadThree = new MyThreadThree();
            myThreadThree.setPriority(7);
            myThreadThree.start();
            MyThreadFour myThreadFour = new MyThreadFour();
            myThreadFour.setPriority(6);
            myThreadFour.start();
        }
    }
}